package huang.course.jan14;



public class UserController {
		
	public boolean login(String name,String pwd){
		Users u=Datebase.users.get(name);
		if(u!=null&&u.getPassword().equals(pwd)){
			return true;
		}else{
			return false;
		}}
	public boolean register(String name,String pwd){
		Users u=new Users();
		u.setUserName(name);
		u.setPassword(pwd);
		Datebase.users.put(name, u);
		return true;
	}
	}

